package com.gonsin.gview.example.groovy

import com.gonsin.gview.annotations.GView
import com.gonsin.gview.annotations.GViewScan
import com.gonsin.gview.logic.EnableGView
import com.gonsin.gview.logic.GViewEnvironment
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.context.annotation.ComponentScan
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc


@EnableGView
@ComponentScan
@SpringBootApplication
@EntityScan
@EnableAutoConfiguration
@GViewScan
@EnableSwagger2WebMvc
class Application {

    static void main(String[] args) {
        GViewEnvironment.LOG = true;
        SpringApplication.run(Application.class);
    }

}
